﻿using EmoneyWeiXinBLL;
using EmoneyWeiXinEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace EmoneyWeiXin.Controllers
{
    public class DailyTask2Controller : Controller
    {

        /// <summary>
        /// 当用户分享
        /// </summary>
        /// <returns></returns>
        public ActionResult ReceiptShare()
        {
            string openid = Request["openid"];
            string reportId = Request["reportId"];
            string weixinId=Request["weixinId"];
            int taskType = 2;
   
            DailyTaskBLL.AddOneDailyTask(new DailyTaskEntity
            {
                openid = openid,
                ReportId = int.Parse(reportId),
                TaskType = taskType,
                ydGold = 50,
                weixinId = weixinId
            });
            return Content("");
        }

    }
}
